package behavioral.memento;
public class Originator {
    public String mState;

    public Memento createMemento() {
        return new Memento(mState);
    }

    public void setMemento(Memento memento) {
        mState = memento.mSaveState;
    }

    public void setState(String state) {
        mState = state;
    }
}
